//
//  UserInfoTool.m
//  Recycling
//
//  Created by jzd on 2018/5/22.
//  Copyright © 2018年 宋佳. All rights reserved.
//

#import "UserInfoTool.h"

@implementation UserInfoTool
static UserInfoTool *tool;

-(NSString *)savePath{
    NSString *path = [NSString stringWithFormat:@"%@",NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES).firstObject];
    return [path stringByAppendingPathComponent:@"aaa"];
}
+(instancetype)shareUserInfoTool{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        tool = [[UserInfoTool alloc]init];
        tool.Info = [NSKeyedUnarchiver unarchiveObjectWithFile:tool.savePath];
    });
    return tool;
}
@end
